package efu.nf.seckilldemo.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lwj
 * @create 2025-09-28-10:17
 */
@Getter
@AllArgsConstructor
public enum ErrorMessageEnum {
    // 订单服务错误码
    PLACE_ORDER_ERROR(1001, "下单失败"),
    // 用户秒杀已存在
    SECKILL_USER_EXIST(1002, "用户已参与秒杀"),
    // 商品已售完
    SECKILL_GOODS_OUT_OF_STOCK(1003, "商品已售完"),
    // 秒杀活动已结束
    SECKILL_ACTIVITY_END(1004, "秒杀活动已卖完"),
    ;

    private Integer code;
    private String message;
}
